package bud.taskmanager.project.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import bud.taskmanager.project.dao.ProjectDao;
import bud.taskmanager.project.dto.Project;

@Service(value = "ProjectService")
public class ProjectServiceImpl implements ProjectService {

	@Autowired
	private ProjectDao projectDao;

	@Override
	public List<Project> findAllProjects() {
		return projectDao.findAllProjects();
	}

	@Override
	public void createProject(Project project) {
		projectDao.createProject(project);
	}

	@Override
	public void updateProject(Project project) {
		projectDao.updateProject(project);
	}

	@Override
	public void deleteProject(int id) {
		projectDao.deleteProject(id);
	}

	@Override
	public Project findProject(int id) {
		return projectDao.findProject(id);
	}
}
